<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>查询专利信息管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function() {

        });
        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
    <style>
        /*图表css*/
        .jeebox{
            box-shadow: 0 2px 3px #eee;
            margin:20px;
            border-top:2px solid #2fa4e7;
            border-radius:4px;
            padding-bottom:15px;
            position: relative;
        }
        .jeebox .jeebox-title{
            line-height:30px;
            padding:5px 15px;
            border-bottom:1px solid #eee;
        }
        .jeebox-sel{
            position:absolute;
            right:15px;
            top:6px;
        }
    </style>
    <script type="text/javascript" src="${ctxStaticJS}/echarts.min.js"></script>
    <script type="text/javascript" src="${ctxStaticJS}/macarons.js"></script>
</head>
<body>
<h1 style="align-content: center">  闽侯县域内专利申请年度趋势分析</h1>
<br>
<br>
    <div class="jeebox">
        <div class="jeebox-title">近十年年度趋势分析</div>
        <div id="log-hdfs-2" style="width:100%;height:300px;"></div>
    </div>
    <c:forEach items="${mapList}" var="mapList">
        <script type="text/javascript">
            /*图表2*/
            var leg=["县域内所有专利申请量","县域内高校专利申请量"];
            var time=[${mapList.year10},${mapList.year9},${mapList.year8},${mapList.year7},${mapList.year6},${mapList.year5},${mapList.year4},${mapList.year3},${mapList.year2},${mapList.year1}];
            var z1=[${mapList.Count10},${mapList.Count9},${mapList.Count8},${mapList.Count7},${mapList.Count6},${mapList.Count5},${mapList.Count4},${mapList.Count3},${mapList.Count2},${mapList.Count1}];
            var z2=[${mapList.Universities10},${mapList.Universities9},${mapList.Universities8},${mapList.Universities7},${mapList.Universities6},${mapList.Universities5},${mapList.Universities4},${mapList.Universities3},${mapList.Universities2},${mapList.Universities1}];
            var myChart = echarts.init(document.getElementById('log-hdfs-2'),'macarons');
            option = {/*
                color: ['#3398DB'],*/
                tooltip : {
                    trigger: 'axis',
                    axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                        type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                    }
                },
                legend:{
                    data:leg
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                xAxis : [
                    {
                        type : 'category',
                        data : time,
                        /*axisTick: {
                            alignWithLabel: true
                        }*/
                    }
                ],
                yAxis : [
                    {
                        type : 'value'
                    }
                ],
                series : [
                    {
                        name:'县域内所有专利申请量',
                        type:'bar',
                        barWidth: '10%',
                        data:z1
                    },
                    {
                        name:'县域内高校专利申请量',
                        type:'bar',
                        barWidth: '10%',
                        data:z2
                    }
                ]
            };

            myChart.setOption(option);
            window.addEventListener("resize",function(){
                myChart.resize();
            });
        </script>
    </c:forEach>
</body>
</html>